package com.tanhua.fenghao.controller;
/*
 *FileName: FengHaoController
 *Created Date:2021/3/4 9:43
 *Developers: Mr.Seven
 */


import com.tanhua.fenghao.service.FengHaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class FengHaoController {

    @Autowired
    private FengHaoService fengHaoService;

    @GetMapping("/fenghao")
    public ResponseEntity findFengHao(String phone) {
        return fengHaoService.findFengHao(phone);
    }
}
